public class text2 {
    public static void fun(person person){
        person.eat();
    }
    public static void main(String[] args){
        person person1=new person("牛马",12);
        person person2=new person("牛马",12);
        System.out.println(person1.equals(person2));
        Student student=new Student("猜猜",10);
        fun(student);
        System.out.println(person1.hashCode());
        System.out.println(person2.hashCode());

    }



}
